package com.arpa.wms.domain.vo;

import com.alibaba.fastjson.annotation.JSONField;
import com.arpa.wms.domain.entity.Outbound;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Digits;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 出库单明细关联复核确认单DTO
 * </p>
 *
 * @author LEO
 * @since 2020-10-27
 */
@Data
@ApiModel(value="OutboundItemWithRegisterVO对象", description="出库单明细关联复核确认单")
public class OutboundItemWithRegisterVO implements Serializable {


    @ApiModelProperty(value = "数据标识，复核确认单标识")
    private String code;

    @ApiModelProperty(value = "出库单号")
    private String outboundCode;

    @ApiModelProperty(value = "出库单明细标识")
    private String outboundItemCode;

    @ApiModelProperty(value = "拣货单明细标识")
    private String pickingItemCode;

    @ApiModelProperty(value = "出货分配标识")
    private String deliveryDistributionCode;

    @ApiModelProperty(value = "出货明细标识")
    private String deliveryItemCode;

    @ApiModelProperty(value = "拣货确认单标识")
    private String pickingRegisterCode;

    @ApiModelProperty(value = "确认表复核状态；0：未复核；2：已复核；")
    private String status;

    @ApiModelProperty(value = "确认表复核状态")
    private String statusText;

    @ApiModelProperty(value = "商品编码code")
    private String goodsCode;

    @ApiModelProperty(value = "商品编码")
    private String goodCode;

    @ApiModelProperty(value = "商品名称")
    private String goodsName;

    @ApiModelProperty(value = "商品条码")
    private String goodsBarCode;

    @ApiModelProperty(value = "商品规格")
    private String spec;

    @ApiModelProperty(value = "商品保质期（天）")
    private BigDecimal expirationQuantity;

    @ApiModelProperty(value = "单位")
    private String goodsUnit;

    @ApiModelProperty(value = "单位名称")
    private String goodsUnitName;

    @ApiModelProperty(value = "商品基本单位")
    private String basicUnit;

    @ApiModelProperty(value = "基本单位名称")
    private String basicUnitName;

    @ApiModelProperty(value = "基本单位转换数量")
    private BigDecimal basicQuantity;

    @ApiModelProperty(value = "库存批次号")
    private String lot;

    @ApiModelProperty(value = "收货批次")
    private String receiveLot;

    @ApiModelProperty(value = "序列号")
    private String serialNumber;

    @ApiModelProperty(value = "供应商")
    private String supplier;

    @ApiModelProperty(value = "扩展1")
    private String extendOne;

    @ApiModelProperty(value = "扩展2")
    private String extendTwo;

    @ApiModelProperty(value = "扩展3")
    private BigDecimal extendThree;

    @ApiModelProperty(value = "扩展4")
    private BigDecimal extendFour;

    @ApiModelProperty(value = "扩展5")
    private LocalDateTime extendFive;

    @ApiModelProperty(value = "扩展6")
    private LocalDateTime extendSix;

    @ApiModelProperty(value = "库存状态")
    private String goodsStatus;

    @ApiModelProperty(value = "库存状态名称")
    private String goodsStatusName;

    @ApiModelProperty(value = "仓库")
    private String warehouseCode;

    @ApiModelProperty(value = "库区")
    private String warehouseSpaceCode;

    @ApiModelProperty(value = "分配库位")
    private String location;

    @ApiModelProperty(value = "分配库位")
    private String locationName;

    @ApiModelProperty(value = "计划复核总数量")
    private BigDecimal planQuantity;

    @ApiModelProperty(value = "复核数量")
    @Digits(integer = 14,fraction = 6, message = "复核数量超过了允许范围（只允许14位整数和6位小数范围内）", groups = {Outbound.Save.class})
    private BigDecimal recheckQuantity;

    @ApiModelProperty(value = "未复核数量")
    private BigDecimal notRecheckQuantity;

    @ApiModelProperty(value = "退减数量")
    private BigDecimal returnQuantity;

    @ApiModelProperty(value = "出库数量")
    private BigDecimal outboundQuantity;

    @ApiModelProperty(value = "生产日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtManufacture;

    @ApiModelProperty(value = "过期日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtExpire;

    @ApiModelProperty(value = "存货日期")
    @JSONField(format="yyyy-MM-dd")
    private LocalDateTime gmtStock;

    @ApiModelProperty(value = "备注")
    private String remarks;

    @ApiModelProperty(value = "创建人名称")
    private String createdName;

    @ApiModelProperty(value = "修改人名称")
    private String modifiedName;

    @ApiModelProperty(value = "任务号")
    private String taskCode;

    @ApiModelProperty(value = "作业人编码")
    private String operatorBy;

    @ApiModelProperty(value = "作业人名称")
    private String operatorName;

    @ApiModelProperty(value = "容器编码")
    private String containerBarCode;

    @ApiModelProperty(value = "容器类型；0：托盘；1：周转箱")
    private Integer containerType;

    @ApiModelProperty(value = "锁定状态，0-不锁，1-锁")
    private Integer isLock;

    @ApiModelProperty(value = "库存容器号；如果有值则说明是托盘号；没值说明上架时要么没用容器，要么用的周转箱；")
    private String inventoryContainerBarCode;

    @ApiModelProperty(value = "oms销售单明细code")
    private String saleItemCode;

    @ApiModelProperty(value = "总数")
    private Long total;

    @ApiModelProperty(value = "库存商品是否可发货；0：是；1：否；")
    private String isConsignment;

    @ApiModelProperty(value = "库存编码")
    private String inventoryCode;

    @ApiModelProperty(value = "波次临时标识")
    private String temporaryCode;

    @ApiModelProperty(value = "退减数量")
    private BigDecimal recheckRefundQuantity;

    @ApiModelProperty(value = "库存表带的原库存编码")
    private String oldInventoryCode;




}
